﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="VehicleApplyInfo_Week.aspx.cs"
    Inherits="Car_VehicleApplyInfo_Week" %>

<%@ Register Assembly="VehicleApplyTable" Namespace="VehicleApplyTable" TagPrefix="cc1" %>
<html>
<head>
    <title>车辆使用一览</title>
    <link href="../css/css.css" type="text/css" rel="stylesheet">

    <script language="javascript">
        function OpenWin(url, iWidth, iHeight) {
            var iLeft = (window.screen.width - iWidth) / 2;
            var iTop = (window.screen.height - iHeight) / 2;
            window.open(url, "", "top=" + iTop + "px,left=" + iLeft + "px,width=" + iWidth + "px,height=" + iHeight + "px,resizable=no,scrollbars=yes,status=no");
        }
        function OpenDialog(url, iWidth, iHeight) {
            iWidth=800;
            iHeight=600;
            var iLeft = (window.screen.width - iWidth) / 2;
            var iTop = (window.screen.height - iHeight) / 2;
            if(url.indexOf('?')>0)
                url=url+"&nc="+Math.random();
            else
                url=url+"?nc="+Math.random();
            window.showModalDialog(url, window, "dialogTop:" + iTop + "px;dialogLeft:" + iLeft + "px;dialogWidth:" + iWidth + "px;dialogHeight:" + iHeight + "px;status:no; directories:yes; scrollbars:no; Resizable=no; help: no;");
        }
        
         function setPos(obj)
         {alert('sbd');
               var HTMLContainer = document.getElementById(obj.Pos);
               if(HTMLContainer!=null)
                   HTMLContainer.innerHTML += "<a onclick='OpenDialog(\""+obj.Url+"\",\"600\",\"400\")' title='"+obj.ToolTip+"' style='width:100%;border:1px solid #000000;cursor:pointer;background-color:"+obj.BgColor+"'>"+obj.Reason+"</a>";
         }
    </script>

    <style>
        .MainTitle2
        {
            color: #073163;
            float: left;
            font-size: 12px;
            padding-left: 10px;
            line-height: 25px;
        }
        .TitleBar
        {
            background: #DEECFD url(../Style/Img/TitleBarBg.jpg) repeat-x scroll 0 0;
            height: 15px;
            border-bottom: 1px solid #99bbe8;
        }
        .Car{background-color:#E3EFFF}
        
  .ToolBar
        { vertical-align: middle; }
        .ToolBar .Normal
        {
            color: Blue;
            vertical-align: top;
            float: left;
            margin: 1px;
            border: 1px solid #a0a0a0;
            background-color:#f2f2f2; 
            margin-left:10px;
            margin-bottom:4px;
        }    
        
        .ToolBar span
        {
            white-space: nowrap;
            color: #15428B;
            line-height: 16px;
            padding: 2px 4px;
            vertical-align: middle; 
        }
        .ToolBar span img
        {
            margin: 2px 0;
            vertical-align: text-bottom;
            border: 0;
        }
    </style>
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <font face="宋体">
        <table id="Table1" height="100%" cellspacing="0" cellpadding="0" width="100%" align="right"
            border="0">
            <tr valign="top">
                <td>
                    <table id="Table2" cellspacing="0" cellpadding="0" width="100%" border="0">
                        <tr>
                            <td>
                                <table height="100%" class="VehicleTitle" cellspacing="0" cellpadding="0" width="100%"
                                    style="height: 25px;" border="0">
                                    <tr>
                                        <td class="TitleBar">
                                            <div class="MainTitle2">
                                                车辆使用一览</div>
                                        </td>
                                    </tr>
                                </table>
                                <table id="Table3" cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
                                 <tr height="35">
                                     <td align="left" class="ToolBar" >
                                          <div class="Normal">
                                                <asp:LinkButton runat="server" ID="btnLastWeek" OnClick="btnLastWeek_Click">
                                                    <span>
                                                        <img src="<%=ResolveUrl("~/Images/skip forward.png")%>" alt="上周" /></span><span>上周</span></asp:LinkButton>
                                            </div>
                                           <div class="Normal">
                                                <asp:LinkButton runat="server" ID="btnCurWeek" OnClick="btnCurWeek_Click">
                                                    <span>
                                                        <img src="<%=ResolveUrl("~/Images/pause.png")%>" alt="本周" /></span><span>本周</span></asp:LinkButton>
                                            </div>
                                           <div class="Normal">
                                                <asp:LinkButton runat="server" ID="btnNextWeek" OnClick="btnNextWeek_Click">
                                                    <span>
                                                        <img src="<%=ResolveUrl("~/Images/fast forward.png")%>" alt="下周" /></span><span>下周</span></asp:LinkButton>
                                            </div> 
                                          <div style="float:left; padding-left:4px;" >跳转到
                                            <asp:DropDownList ID="ddlYear" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlYear_SelectedIndexChanged">
                                            </asp:DropDownList>
                                            年
                                            <asp:DropDownList ID="ddlMonth" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlYear_SelectedIndexChanged">
                                            </asp:DropDownList>
                                            月 &nbsp;
                                            </div>
                                        </td>
                                        <td width="25%" style="font:bold;">
                                            &nbsp;<asp:Label ID="lblWeekNum" runat="server"></asp:Label><asp:TextBox ID="txtDate"
                                                runat="server" Width="0px"></asp:TextBox>
                                        </td>
                                        <td width="25%">
                                            <table id="Table4" cellspacing="0" cellpadding="0" align="center" border="0">
                                                <tr height="15" valign="bottom">
                                                    <td width="15">
                                                        <img src="../images/dot2.gif">
                                                    </td>
                                                    <td width="80">
                                                        &nbsp;已通过申请
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                      
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="3">
                                            <%--<cc1:VehicleApplyWeekTable ID="VehicleApplyWeekTable1" runat="server" />--%>
                                            <asp:Table ID="tbVehicleApply" runat="server" Width="99%" CssClass="Table">
                                            </asp:Table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </font>

    <script language="javascript" type="text/javascript"> 
<!--
        function __checkall(cb, ownerid) {
            var boxid = ownerid + '_ctl';
            var itempostfix = '_CBI';
            var istartindex = boxid.length;
            var startindex = parseInt(cb.id.substr(istartindex, istartindex + 1)) + 1;
            while (document.all[boxid + (startindex < 10 ? "0" + startindex : startindex.toString()) + itempostfix]) {
                document.all[boxid + (startindex < 10 ? "0" + startindex : startindex.toString()) + itempostfix].checked = cb.checked;
                startindex++;
            }
        }
// -->
    </script>

    </form>
</body>
</html>
